package com.test;

import com.ioc.Father;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TesetIOC {

    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");

        Father father=context.getBean(Father.class);
        father.go();

    }

}
